
	
/****** Object:  Stored Procedure [dbo].FriendsUpdate    Script Date: Monday, July 27, 2009 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spFriendsUpdate]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[spFriendsUpdate]
GO
			
	
	

	
/******************************************************************************
**		File: 
**		Name: [dbo].spFriendsUpdate
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 7/27/2009 4:18:20 PM
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE [dbo].spFriendsUpdate
	@UserId int, 
	@FriendId int, 
	@Allow bit 
AS

UPDATE [dbo].[Friends] SET
	[Allow] = @Allow
WHERE
	[UserId] = @UserId
	AND [FriendId] = @FriendId

GO

